laravel rollback last migration

52

php artisan migrate:rollback
Try this command it works for me

php artisan migrate:fresh
However, be careful! This command will drop all data from your DB:
//Rolling Back Migrations

//To roll back the latest migration operation
php artisan migrate:rollback

//You may roll back a limited number of migrations
php artisan migrate:rollback --step=2

//The migrate:reset command will roll back all of your application's migrations:
php artisan migrate:reset

Comments

Submit
0 Comments